<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>jq</title>
	<script src="jquery.js"></script>
	
</head>
<style>
	
</style>


<body>
	<div></div>
	<div>
		<h1>aaaaaaaaaaaa</h1>
	</div>
</body>
<script>
	//:parent 匹配含有子元素或者文本的元素
	//parent 本身是父亲身份，有子类
	$('div:parent').css({'color':'#f00'}); //找到有子类的div
</script>
</html>